<template>
  <div class="relative" :class="[boxClass]">
    <img :src="'/public/border_' + border + '.svg'" :class="[imgClass]" style="width: 100%;height: 100%;">
    <div class="absolute top-0 w-full h-full" :class="[slotClass]">
      <slot />
    </div>
  </div>
</template>

<script lang="ts" setup>
defineProps({

  // Svg file should match => <svg preserveAspectRatio="none"
  border: {
    type: Number,
    required: true
  },

  boxClass: {
    type: String,
    required: false,
    default: ''
  },

  imgClass: {
    type: String,
    required: false,
    default: ''
  },

  slotClass: {
    type: String,
    required: false,
    default: ''
  }
})

</script>

<style>
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
</style>
